﻿import Vue from 'vue'
import App from './App.vue'
import router from './router'

// 引入字体图标样式
import '@/styles/fonts/font.less'

import '@/styles/index.less'
// dialog拖拽全屏缩放
import Drag from '@/utils/exportExcel/drag.js'

import axios from 'axios'
import XLSX from 'xlsx'



// axios.defaults.baseURL = 'http://localhost:63067/CompanyapiDC'//作业公司-大厂

// axios.defaults.baseURL = 'http://111.160.78.62:9931/api'
// axios.defaults.baseURL = 'http://111.160.78.62:5563/api'
// axios.defaults.baseURL = 'http://111.160.78.62:9930/Cityscapeapi'//市容委
// axios.defaults.baseURL = 'http://111.160.78.62:9933/CityscapeDLapi' //东丽
// axios.defaults.baseURL = 'http://111.160.78.62:9938/CityscapeZHJapi'//中环洁
// axios.defaults.baseURL = 'http://111.160.78.62:5564/CompanyapiBDEapi'//博德尔

// axios.defaults.baseURL = 'http://111.160.78.62:9942/GarbagePointsApi'//cs指导员
// axios.defaults.baseURL = 'http://111.160.78.62:9943/GarbagePointsCSApi/'//指导员

// axios.defaults.baseURL = 'http://192.168.1.120:5556/CompanyapiBDEapi/'//博德尔-新-全力
// axios.defaults.baseURL = 'http://192.168.1.113:8000/CompanyapiBDEapi/'//张旭电脑服务


//东丽区坐标
// 东丽区环卫一体化作业智慧环卫监管平台
const userName='dlhw'
const MapName='天津市东丽区'
const DefaultPointX=117.318845
const DefaultPointY=39.094733
axios.defaults.baseURL = 'http://111.160.78.62:5568/CompanyapiBDEapi/'//博德尔-正式
// axios.defaults.baseURL = 'http://192.168.1.113:63067/CompanyapiBDEapi/'//博德尔-正式
// axios.defaults.baseURL = 'http://192.168.1.113:8000/CompanyapiBDEapi/'//博德尔-测试

// 赣州坐标
// 赣州环卫一体化作业智慧环卫监管平台
// const userName='gz'
// const MapName='赣州市'
// const DefaultPointX=114.939972
// const DefaultPointY=25.837286
// axios.defaults.baseURL = 'http://111.160.78.62:9945/CompanyapiGZapi/'//作业公司-赣州
// 应县坐标
// const userName='yx'
// const MapName = '朔州市应县'
// const DefaultPointX = 113.2
// const DefaultPointY = 39.4
// axios.defaults.baseURL = 'http://111.160.78.62:9931/Companyapi' //作业公司-应县
//大厂坐标
// const userName='glx'
// const MapName = '廊坊市大厂县'
// const DefaultPointX = 117.0335
// const DefaultPointY = 39.8481
// axios.defaults.baseURL = 'http://111.160.78.62:9932/CompanyapiDC' //作业公司-大厂
//福州区坐标
// 佳好佳智慧环卫平台
// const userName='fjjhj'
// const MapName='福州市'
// const DefaultPointX=119.307359
// const DefaultPointY=26.081909
// axios.defaults.baseURL = 'http://111.160.78.62:9944/CompanyapiFJapi/' //福建

  

//整体引入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
//引用vuex
import Vuex from 'vuex'

import vdr from 'vue-draggable-resizable-gorkys'

// 导入默认样式
import 'vue-draggable-resizable-gorkys/dist/VueDraggableResizable.css'

import '@/styles/draggableResize.less'

// import routerUtil from "@/utils/exportExcel/routerutil.js";//定时退出账号
// routerUtil(router);
// import sessionUtil from '@/utils/exportExcel/sessionutil'
// sessionUtil.setSession("userInfo", '2');

Vue.use(ElementUI)
Vue.use(Vuex)
Vue.component('vdr', vdr)
Vue.prototype.$url = 'http://111.160.78.62:9930/Cityscapeapi/DataListCompany/'
Vue.prototype.$axios = axios

Vue.prototype.XLSX = XLSX

Vue.prototype.$Http = axios 

Vue.config.productionTip = false

// 根据路由设置标题
router.beforeEach((to, from, next) => {
  /*路由发生改变修改页面的title */
  if(to.meta.title) {
    document.title = to.meta.title
  }
  next()
})


new Vue({
  router,
  render: h => h(App)
}).$mount('#app')

export default {
  MapName,
  DefaultPointX,
  DefaultPointY,
  userName
}
